﻿using AxMicrosoft.Office.Interop.VisOcx;
using System;
using System.IO;
using System.Windows.Forms;

namespace WorkFlowDesign
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private void Form1_Load(object sender, EventArgs e)
        {
           AxDrawingControl axDrawingControl = new AxDrawingControl();
            axDrawingControl.Dock = DockStyle.Fill;
            Controls.Add(axDrawingControl);

        }
        private void tsml_Open_Click(object sender, EventArgs e)
        {
            SaveFileDialog dlg = new SaveFileDialog();
            dlg.Filter = "Visio文件(*.vsd)|*.vsd|所有文件(*.*)|*.*";
            dlg.FilterIndex = 1;
            if (dlg.ShowDialog() == DialogResult.OK)
            {
                if (dlg.FileName.Trim() != string.Empty)
                {
                    if (File.Exists(dlg.FileName))
                    {
                    }
                }
            }
        }


    }
}
